package com.itheima.api.client;

import com.itheima.common.domain.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value="cart-service")
public interface CartClient {
    @DeleteMapping("/cart/delete")
    public Result delete(@RequestParam("id") Integer id);
}
